import request from '@/utils/request'

export const getPatientList = (pageQuery) =>
  request.get('/patient/getPatientList/', { params: pageQuery })

export const getPatientInfo = (patientId) =>
  request.get(`/patient/getPatientInfo/`, { params: { patientId } })

export const addPatient = (patientInfo) =>
  request.post('/patient/addPatient/', patientInfo)

export const getDischargeInfo = (patientId) =>
  request.get(`/patient/getDischargeInfo/${patientId}`)

export const discharge = (patientId) =>
  request.get(`/patient/discharge/${patientId}`)

export const getPatientStats = () => request.get('/patient/getPatientStats')

export const getPatientGender = () => request.get('/patient/getPatientGender')
